sap.ui.define([
	"sap/ui/core/mvc/Controller",
    "sap/ui/model/json/JSONModel",
    "../../model/formatter"
], function(
	Controller,
    JSONModel,
    formatter
) {
	"use strict";

	return Controller.extend("ui5.walkthrough.controller.table.Tabel", {
        formatter: formatter,

        /**
         * @override
         */
        onInit: function() {
            const oViewModel = new JSONModel({
				currency: "EUR"
                // currency: "JPY"
			});
			this.getView().setModel(oViewModel, "view");

            const status = new JSONModel({
				par: "content"
			});
            this.getView().setModel(status, 'status');
        }
	});
});